Resolve WSL Ubuntu failure caused by sudo reboot by running wsl --shutdown in Windows to reset the virtual machine state.